package com.neighbor.neighborhooduser.dao;

import com.neighbor.neighborhooduser.pojo.UserFriends;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neighbor.neighborhooduser.service.IUserFriendsService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * <p>
 * 用户好友关系表 Mapper 接口
 * </p>
 *
 * @author song
 * @since 2025-09-22 09:13:04
 */
public interface IUserFriendsDao extends BaseMapper<UserFriends> {
    Integer isFollow(@Param("user_id") Integer user_id,
                     @Param("friend_id") Integer friend_id);

    Integer follow(@Param("user_id") Integer user_id,
                  @Param("friend_id") Integer friend_id);

    Integer unFollow(@Param("user_id") Integer user_id,
                   @Param("friend_id") Integer friend_id);
}
